<?php
/**
 * Created by PhpStorm.
 * User: BlueIdeaLirui
 * Date: 2020/12/28
 * Time: 14:17
 */

namespace business\company\services;

use business\company\repositories\SelectionSupplierRepository;

class SupplierBoutiqueService
{
    /**
     * 是否是精选供应商
     * @param $supplierId
     * @return bool
     * @throws \yii\base\InvalidConfigException
     */
    public function IsBoutique($supplierId)
    {
        $supplierBoutiqueRepository = new SelectionSupplierRepository();
        $data = $supplierBoutiqueRepository->getSupplierInfoByCompanyId($supplierId);
        if (empty($data)) {
            return false;
        }
        return true;
    }
}
